-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Making a JIT Compiler and adding Optimization Passes #7
Open
AnimeshSinha1309
wants to merge
9
commits into
master
Choose a base branch
from
dev/phase-4
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Owner
AnimeshSinha1309
commented
Jul 24, 2023
•
edited
Loading
edited
- A jit compiler produces expression values as outputs
- A basic optimization pass is ready
- Tests to see if the evaluation by JIT compiler is correct
- Tests to see if the optimized LLVM IR is correct
Added termcolor library to color the text we are printing, as well as demarcate out the outputs better.
Making things CLion compatible, so changing the build directory name.
Codegen changed a bit. If it's a top level expression, we wrap it in a function. And then all function bodies are read evaluated to Value* using a helper.
Adapted the codegen module to one that dynamically rebinds the module to the function, if the definition gets changed. Evaluation implemented, but nothing tested yet.
AnimeshSinha1309
force-pushed
the
dev/phase-4
branch
6 times, most recently
from
August 14, 2023 21:35
e4e87ee
to
42b21ba
Compare
The cloud build failed, most probably because the LLVM version from the tutorial is not the one in the image, so upgrading.
AnimeshSinha1309
force-pushed
the
dev/phase-4
branch
from
August 14, 2023 21:40
42b21ba
to
b0446df
Compare
This is the code that should work, but it's completely untested. It does the JIT stuff and stores the output waiting to be gotten. Has linker errors on the local runs now.
Just factoring out the code that used to be in a separate file in the tutorial too.
Just trying it out once if it fixes the compilation.
Seeing that I am getting include errors now, hoping to get a linker error.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.